package Order.sqlclass;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="user")
@Entity
public class User {
	@Id
	@Column(name="id")
	private int id ;
	@Column(name="nickname")
	private String nickname;
	@Column(name="postname")
	private String postname;
	@Column(name="password")
	private String password;
	@Column(name="gender")
	private String gender;

	@Column(name="user_account")
	private int useraccount;
	
//	@ManyToOne
//	@JoinColumn(name="user_id")
//	private Client clients;
	
	public User(){
		
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getPostname() {
		return postname;
	}
	public void setPostname(String postname) {
		this.postname = postname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getUseraccount() {
		return useraccount;
	}
	public void setUseraccount(int useraccount) {
		this.useraccount = useraccount;
	}
	
//	public Client getClient() {
//		return clients;
//	}
//	public void setClient(Client clients) {
//		this.clients = clients;
//	}
	
	@Override
	public String toString() {
		return "User [id=" + id + ", nickname=" + nickname + ", postname=" + postname + ", password=" + password
				+ ", gender=" + gender + ", account=" + useraccount + "]";
	}
	
	
}
